<template>
	<view>
		<!-- <view :style="'padding-top:'+(demo.height+demo.top+10)+'px;z-index:999'">
			<head1 class="nav_top"
				:style="'height:' +  demo.height + 'px;' + 'padding-top:' + demo.top + 'px;padding-bottom:10px'"
				:nav="title">
			</head1>
		</view> -->
		<view>
			<web-view :src="zghurl"></web-view>
		</view>
	</view>
</template>
	
<script>
	import head1 from '../../common/head/head'
	export default {
		components: {
			head1
		},
		data() {
			return {
				title: '关注公众号',
				zghurl:'',
				demo: {
					top: '',
					height: ''
				}
			}
		},
		created() {
			const demo = uni.getMenuButtonBoundingClientRect()
			this.demo.top = demo.top
			this.demo.height = demo.height
			this.getGuanzhu()
		},
		onShow() {
			console.log('onshouw')
		},
		methods: {
			getGuanzhu(){
				this.$myResquest.getDict({
					enumCode:'applet'
				}).then(res=>{
					if(res.data.code==200){
						this.zghurl=res.data.data.applet[0].meaning
					}
				})
			},
		}
	}
</script>

<style>

</style>
